package com.tianpengtech.common.model.fairauth;

import com.tianpengtech.common.model.AbstractBaseModel;

/**
 * 实体类名-网红认证表 fair_wh_auth
 *
 * @since Mon Sep 11 22:59:45 HKT 2017
 */
public class FairAuth extends AbstractBaseModel<FairAuth> {

	/**
	 *
	 */
	private static final long serialVersionUID = 1L;
	public static final FairAuth dao = new FairAuth();

	public static final String ID = "id"; //
	public static final String WH_ID = "wh_id"; // 网红ID
	public static final String USER_NAME = "user_name"; // 账号
	public static final String NICK_NAME = "nick_name"; // 昵称
	public static final String FANS = "fans"; // 粉丝数量
	public static final String SCREENSHOT = "screenshot"; // 截图
	public static final String TYPE = "type"; // 类型
	public static final String DELETETAG = "deletetag"; // 删除标识
	public static final String STATUS = "status"; // 状态
	
	public static final int STATUS_APPROVING=1; //提交待审核
	public static final int STATUS_SUCCESS=2; //审核通过
	public static final int STATUS_FAILURE=3;	//审核不通过

	public static final int TYPE_WEIBO=1;	//微博
	public static final int TYPE_WEIXIN=2;	//微信
	public static final int TYPE_QQ=3;	//QQ
	public static final int DEL_YES=1;	//QQ
	public static final int DEL_NO=0;	//QQ

	
	public String type(){
		String result="空";
		if(getInt(TYPE)==TYPE_WEIBO){
			result = "新浪微博";
		}else if(getInt(TYPE)==TYPE_WEIXIN){
			result = "微信";
		}else if(getInt(TYPE)==TYPE_QQ){
			result = "QQ";
		}
		return result;
	}
	
	public String status(){
		String result="空";
		if(getInt(STATUS)==STATUS_APPROVING){
			result = "等待审核";
		}else if(getInt(STATUS)==STATUS_SUCCESS){
			result = "审核通过";
		}else if(getInt(STATUS)==STATUS_FAILURE){
			result = "审核不通过";
		}
		return result;
	}
	
	@Override
	public String tableName() {
		return "fair_wh_auth";
	}

}